home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / ATL_Samples / countctn / countctn.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.0 KB  |  72 lines

  1. // CountCtn.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "CountCtn.h"
  6. #include "CountDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CCountCtnApp
  16.  
  17. BEGIN_MESSAGE_MAP(CCountCtnApp, CWinApp)
  18.     //{{AFX_MSG_MAP(CCountCtnApp)
  19.         // NOTE - the ClassWizard will add and remove mapping macros here.
  20.         //    DO NOT EDIT what you see in these blocks of generated code!
  21.     //}}AFX_MSG
  22. END_MESSAGE_MAP()
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CCountCtnApp construction
  26.  
  27. CCountCtnApp::CCountCtnApp(LPCTSTR lpszAppName)
  28.     : CWinApp(lpszAppName)
  29. {
  30.     // TODO: add construction code here,
  31.     // Place all significant initialization in InitInstance
  32. }
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // The one and only CCountCtnApp object
  36.  
  37. // WCE MFC apps require the application name to be specified in the CWinApp 
  38. // constructor. A help contents filename may also be specified.
  39.  
  40. CCountCtnApp theApp(_T("CountCtn"));
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CCountCtnApp initialization
  44.  
  45. BOOL CCountCtnApp::InitInstance()
  46. {
  47.     AfxEnableControlContainer();
  48.  
  49.     // Standard initialization
  50.     // If you are not using these features and wish to reduce the size
  51.     //  of your final executable, you should remove from the following
  52.     //  the specific initialization routines you do not need.
  53.  
  54.     CCountCtnDlg dlg;
  55.     m_pMainWnd = &dlg;
  56.     int nResponse = dlg.DoModal();
  57.     if (nResponse == IDOK)
  58.     {
  59.         // TODO: Place code here to handle when the dialog is
  60.         //  dismissed with OK
  61.     }
  62.     else if (nResponse == IDCANCEL)
  63.     {
  64.         // TODO: Place code here to handle when the dialog is
  65.         //  dismissed with Cancel
  66.     }
  67.  
  68.     // Since the dialog has been closed, return FALSE so that we exit the
  69.     //  application, rather than start the application's message pump.
  70.     return FALSE;
  71. }
  72.